/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package anivis.layers;

import anivis.ui.Controller;

import  prefuse.data.Table;
/**
 *
 * @author urp
 */
public class ObservationLayer extends Layer
{
  private Table               table;
  
  public  ObservationLayer(String layerName,boolean mapVisibility,boolean timelineVisibility)
  { 
    super(layerName,mapVisibility,timelineVisibility); 
    table = new Table();
  }
  public  ObservationLayer(Table aTable,String layerName,boolean mapVisibility,boolean timelineVisibility)
  { 
    super(layerName,mapVisibility,timelineVisibility); 
    table = aTable;
  }
  
  public void getData(Controller c)
  {
    table = c.getTable(super.getRestrictionTypes());
    System.out.println("Layer got " + table.getRowCount());
      
  }
  
  public Table getTable()
  {
    return table;
  }
  
  public void setTable(Table newTable)
  {
    table = newTable;
  }
}
